package api.apiservice.apiopenplat.common.unifyDataForm.Exception;

import lombok.Getter;

/**
 *
 * 统一异常处理
 *
 * */
@Getter
public enum ExceptionEnu {



        REQUEST_ERROR_KEY("101", "ACCESSKEY错误！调用失败！"),
        REQUEST_ERROR_VER("202", "ACCESSSECRET校验失败！调用失败！"),
        REQUEST_ERROR_TIME("203","调用过快，允许2分钟后再次调用！"),
        REQUEST_ERROR_REQUEST("204","请求失效"),

        REQUEST_ERROR_USE("205","该API已被禁用，暂停调用！");

        private String code;
        private String message;

        ExceptionEnu(String code, String message) {
            this.code = code;
            this.message = message;
        }
    }


